package zaphod.toy.gef.japanexample.model;

import java.beans.PropertyChangeListener;

import org.eclipse.gef.editparts.AbstractGraphicalEditPart;


abstract public class EditPartWithListener extends AbstractGraphicalEditPart
    implements PropertyChangeListener
{
    public void activate()
    {
        super.activate();
        ((AbstractModel)getModel()).addPropertyChangeListener( this );

    }


    public void deactivate()
    {
        super.deactivate();
        ((AbstractModel)getModel()).removePropertyChangeListner( this );
    }

}
